<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page isELIgnored="false"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ include file="/WEB-INF/pages/common/inc.jsp"%>
<link href="${ctxStatic}/css/plugins/summernote/summernote.css"
	rel="stylesheet">
<link href="${ctxStatic}/css/plugins/summernote/summernote-bs3.css"
	rel="stylesheet">
<link href="${ctxStatic}/css/plugins/dropzone/dropzone.css"
	rel="stylesheet">
<body class="gray-bg" style="cursor: auto;">
	<div class="wrapper wrapper-content">
		<form action="${ctx}/admin/info/addnews" method="POST" id="pubForm"
			class="form-horizontal m-t">
			<input type="hidden" value="" name="imgurl" id="pics"/>
			<div class="ibox float-e-margins">
				<div class="ibox-title">
					<h5>标题</h5>
					<div class="ibox-tools">
						<a class="collapse-link"> <i class="fa fa-chevron-up"></i>
						</a> <a class="dropdown-toggle" data-toggle="dropdown"
							href="form_editors.html#"> <i class="fa fa-wrench"></i>
						</a> <a class="close-link"> <i class="fa fa-times"></i>
						</a>
					</div>
				</div>
				<div class="ibox-content no-padding">
					<table class="table">
						<tbody>
							<tr>
								<td>标题</td>
								<td><input type="text" name="title"
									class="form-control" placeholder="请输入文本" required="required"></td>
								<td>类型</td>
								<td><select class="form-control" name="type">
										<c:forEach items="${fns:getDictList('news')}" var="dict">
											<option value="${dict.value}">${dict.label}</option>
										</c:forEach>
								</select></td>
							</tr>
						</tbody>
					</table>
				</div>
			</div>
			<div class="row">
				<div class="col-sm-12">
					<div class="ibox float-e-margins">
						<div class="ibox-title">
							<h5>上传图片</h5>
							<div class="ibox-tools">
								<a class="collapse-link"> <i class="fa fa-chevron-up"></i>
								</a> <a class="dropdown-toggle" data-toggle="dropdown" href="#">
									<i class="fa fa-wrench"></i>
								</a>
								<ul class="dropdown-menu dropdown-user">
								</ul>
								<a class="close-link"> <i class="fa fa-times"></i>
								</a>
							</div>
						</div>
						<div class="ibox-content">
							<div id="my-awesome-dropzone" class="dropzone"
								style="height: 200px">
								<div align="right">
									<button class="btn btn-success " type="button" id="sub">
										<i class="fa fa-upload"></i>&nbsp;&nbsp;<span class="bold">上传</span>
								</div>
								</button>
							</div>
						</div>
					</div>
				</div>
			</div>
			<div class="row">
				<div class="col-sm-12">
					<div class="ibox float-e-margins">
						<div class="ibox-title">
							<h5>正文</h5>
							<div class="ibox-tools">
								<a class="collapse-link"> <i class="fa fa-chevron-up"></i>
								</a> <a class="dropdown-toggle" data-toggle="dropdown"
									href="form_editors.html#"> <i class="fa fa-wrench"></i>
								</a> <a class="close-link"> <i class="fa fa-times"></i>
								</a>
							</div>
						</div>
						<script id="container" name="context" type="text/plain">
   						</script>
					</div>
				</div>
			</div>
			<!-- 鼠标移动上面就获取summernote 中的code -->
			<div align="center">
				<button type="submit" class="btn btn-primary">发布</button>
				<button type="submit" class="btn btn-success">预览</button>
			</div>
		</form>
	</div>
	<script src="${ctxStatic}/js/jquery.min.js?v=2.1.4"></script>
	<script src="${ctxStatic}/js/bootstrap.min.js?v=3.3.6"></script>
	<script src="${ctxStatic}/js/content.min.js?v=1.0.0"></script>
	<script src="${ctxStatic}/js/plugins/webuploader/webuploader.min.js"></script>
	<script src="${ctxStatic}/js/plugins/dropzone/dropzone.js"></script>
	<script src="${ctxStatic}/js/plugins/dropzone/dropzoneconfig.js"></script>
	<script type="text/javascript">
		function getCtxPath() {
			return "${ctx}";
		}
	</script>
	<script type="text/javascript"
		src="${ctxStatic}/js/plugins/ueditor/ueditor.config.js"></script>
	<script type="text/javascript"
		src="${ctxStatic}/js/plugins/ueditor/ueditor.all.js"></script>
	<script type="text/javascript">
		var ue = UE.getEditor('container');
	</script>
</body>
